<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</meta>
<title>F.setForm演示</title>
<script type="text/javascript" src="../../1st.js"></script>
</head>
<body>
<form name="myform">
    姓名：<input type="text"   name="username" />
	<br/>
    性别：
	<input type="radio" name="sex" value="1" />男
    <input type="radio" name="sex" value="2" />女
	<br/>
	爱好：
	<input type="checkbox" name="fav" value="1" />下棋
	<input type="checkbox" name="fav" value="2" />上网
	<input type="checkbox" name="fav" value="3" />听歌
	<input type="checkbox" name="fav" value="4" />玩游戏
	<input type="checkbox" name="fav" value="5" />看小说
	<input type="checkbox" name="fav" value="6" />电脑
</form>

<script type="text/javascript">
F.setForm("myform", {username:"aaa",sex:2, fav:"1,3,5"});
</script>
</body>
</html>